{% extends "common/vacation_base.html" %}

{% block title %}选择日期{% endblock %}
{% block css_ex %}
    <!-- build:css(.tmp) css/hotel/hotel_calendar.css -->
    <link rel="stylesheet" href="{{ url_for('static', filename='mobile/css/common/widget/fullcalendar.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='mobile/css/hotel/hotel_calendar.css') }}">
    <!-- endbuild -->
{% endblock %}

{% block app_header %}
    <script>
        {% if not is_breadtrip %}
        // System
        var breadtripBannerTitle = '选择日期';
        var activityName = '选择日期';
        // Display share button or not
        var shrFlag = 0;
        // Display back button or not
        var goBackFlag = false;
        // Display contact button or not
        var contactFlag = true;
        {% else %}
        // App 显示底部navigation bar
        var bt_show_bottom_bar = 'YES';

        // System
        var breadtrip_banner_title = '选择日期';
        var activity_name = '选择日期';

        // Display share button or not
        var shr_flag = 0;
        {% endif %}
    </script>
{% endblock %}

{% block content %}
    <div id="calendar"></div>
{% endblock %}

{# 不加载swipe组件 #}
{% block js_swipe %}{% endblock %}

{# 不加载zepto touch组件 #}
{% block js_touch %}{% endblock %}

{% block js_ex %}
<script type="text/javascript">
    BT.context('hotelId', '{{ hotel_id }}')
    BT.context('storageName','hotel_{{ hotel_id }}_order')
    BT.context('type', '{{type}}')
    BT.context('checkin_date','{{checkin_date}}')
    BT.context('checkout_date','{{checkout_date}}')
    BT.context('backUrl', '{{back_url}}')
</script>
<!-- build:js js/hotel/hotel_calendar.js -->
<script src="{{ url_for('static', filename='mobile/js/common/lib/jquery.js') }}"></script>
<script src="{{ url_for('static', filename='mobile/js/common/lib/fullcalendar.js') }}"></script>
<script src="{{ url_for('static', filename='mobile/js/common/lib/moment.js') }}"></script>
<script src="{{ url_for('static', filename='mobile/js/hotel/hotel_calendar.js') }}"></script>

<!-- endbuild -->
{% endblock %}

